Ensure code is Linted

Fixed issues presented by JSHint. These issues caused the script to fail to compile.