Added logic to the js to not track if loading the page from localhost.