added get root method in web.js