updated for new Play and RequireJS support