use bracket notation: objPosition['title'] = "whatever";
so:
var objPosition = {}, ttl = 'title';
objPosition[ttl] = 'whatever';
[edit 11/2019: es20xx]
let objPosition = {};
const ttl = 'title';
// [...]
objPosition = {...objPosition, [ttl]: "whatever"};
console.log(objPosition);