Reverted back to 4. branch because 5. requires angular 1.3