implimented jQuery for SPA