When creating JavaScript factory functions I was taught that the return syntax looks like the below:
function FF(constructorArg) { var _privateName = construc
This is new es6 syntax. Only some browsers will support it unless you are compiling to es5. See the compatibility table: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer