Feature/primary nav advanced

JS refactored to remove global dependencies
Translation strings setup properly with rake task