Updated Login Script to use AJAX instead of POST.  Also abstracted the login js for use with different view elements.