Organize code and avoid js and css to load multiple times