Adding in JS to save current tab