Angular.js module fix

Some structural changes.