Ran core.js through JSHint and JSTidy