Separated the logic into modules based on the structure of MSEAPI. Created frontend, requestHandler.js