You are not using the LocalStorage API correctly. The right way to use setItem is localStorage.setItem(key, value). You passed 3 args. You probably want to set 2 keys:
localStorage.setItem('canvasTop', valuehere);
localStorage.setItem('canvasLeft', anotherValuehere);