Added snippets to make angularjs load faster