Cleaning up bMoor code with jsHint