Fixing loading order with angular and requirejs