added javascript url fetching functionality.