Cleans up code with the help of jsHint.