big optimization of angular javascript