fixed JS lint issues