How to do progressive enhancement with angularjs and rails