Added a new way to create components reading de init.js file.
Refactored.