Pulled AJAX JS into separate function
Merge pull request #6 from arambalakjian/3.1

Pulled AJAX JS into separate function