ground javascript refactoring
Merge pull request #91 from folieadrien/improve-build

javascript refactoring