refactor
tested Morgas.util.Request.js