added route for AngularJS action
added example test
added global object to inject code in startup-hooks
cleaned code