incorrect javascript object notation (missing curly braces)