starting to rebuild using angularjs