require angularjs instead of creating a Function to enable debugging