Todo App for Firefox OS - plain JS