add angularjs client and CORS support