Simple RESTful API build in Silex PHP Framework + Angular.js + Require.js