Moving the js into the respectful files to fix issues with JQM