Removing unused code
Enforcing JSHint's undef option
Enforcing JSHint's noarg and nonbsp options
Merge pull request #5059 from timvandermeij/unused-code

Removing unused code and enforcing additional JSHint options