Code Refactoring in javascript setup a framework for easy handling Async
Request.