using jquery for fast execution of script