Added JS

Testing code to update the tab based on the users focus.