JavaScript SPA - angular seed - update