refactored ajax requests (bug 848952) WIP
Merge pull request #53 from ednapiranha/bug848952

refactored ajax requests (bug 848952)