trailing comma is not legal in ECMA-262 object initializers
missing variable declaration
function defined but not used