tweaked js to not try to use an object property inside the object
literal definition.