Standalone version of AngularJS's $parse