Edited web.js to accept url as a parameter