fix js runtime