[#27] Improved ajax requests in default javascript