fix js issues