restructure code to remove web page stuff from jQuery folder