Create angularjs structure