major refactoring of javascript files
Merge pull request #41 from iliastsangaris/refactor-js

major refactoring of javascript files