fix js calls