started using jquery for json requests