Changed jquery functionality to use straight jquery instead of John Synders code