http req fix in JS driver