angular with require.js bug