add more preliminary code to the AngularJS