Getting todo app working in Firefox with js.