Refactor to remove the require module styles and requirejs