fix js ref