fix js references