fix js loader