fix js prob