Tidy JavaScript according to coding conventions