update http listener for js call