trying to remove absolute urls in javascript