Added jQuery wrapping for $(document).ready and ajax callbacks