Compiled with Codekit. Corrected all the errors from JSHint