Fixed tern-auto-complete to load correctly
Refactoring of some javascript layer package initialisation