Refactor all classes into seperate JS files