ngCloak, refactoring