fix js warnings