Refactorisation of Tetra.js file structure
update