reset js and fix external url