some initial organization for the angularjs part