fixed localStorage, incorporated Handlebars, removed indexOf