adding jquery, finishing up code to access the dom of current tab.