New javascript frontend structure using Require.js AMD