added jsdoc for object type number in mainLoop