preparing for angularjs