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