Changed array-style access to match other .getItem() calls.
Whitespace tweaks.
Created loadCurrentCanvasId() helper.
Created loadNextCanvasId() helper.