Manage required assets compatible with RequireJS in Symfony2