Easy clean up of JS based on codeclimate report