Replacing knockout code with angular code and require.js AMD library