javascript object literal may only specify known properties