Refactored structure of modules and controllers on script of HTML client