trailing comma is not legal in ECMA-262 object initializers
missing variable declaration
function defined but not used
Merge pull request #538 from ZaWertun/master

JavaScript validation issues