Update todoCtrl.js

Required for angular js 1.1.5+ / 1.2
The old code stored $$hashKey to local storage. Which meant that it would fail when its loaded later on (try browser refresh). This is due to "track by" feature added in angularjs