fixed js spacing according to coding conventions