Adding ng-cloak and moving .js declarations around.