rewrite storage ejs template with AngularJS.