Perform small code cleanup

Corrected JSHint errors and some cheeky stuff