first implementation of angular js with a CORS filter