using prefix for urls in javascript