added Authorization header for the ajax request
Merge pull request #98 from pulse00/auth-patch

Added Authorization header for the ajax request. Still have to look for the original cause. Will revisit it later.