Clean up backend js file based on jshint