Clean up angular code