fix js mistake