Feature detection for Angular.js