fixed js mistake