Removing unused code
Enforcing JSHint's undef option
Enforcing JSHint's noarg and nonbsp options
Add a reduced test-case for bug 1027533
Merge pull request #5099 from Snuffleupagus/bug-1027533-test

Add a reduced test-case for bug 1027533
Merge pull request #5059 from timvandermeij/unused-code

Removing unused code and enforcing additional JSHint options