add version num to jquery, lots of refactoring