fix js call