refactor(core): make angular code safe for uglify