Fix trailing comma which throws error in IE, and other errors reported from JSHint
Merge pull request #4 from gdub22/master

Fix trailing comma which throws error in IE, and other errors reported from JSHint