angular-js example cleanup