Fixed all errors, passes Grunt tests.