enabled script to accept request from js