Fix bug that requirejs working with angular