Seperated out the table specific content/javascript from the general content/javascript