angularjs HTML5 client side single page smart api app