started using jquery for preview page