simplified output format; added detection for angular.js itself