Fix occasional array bounds JS error in decoration animation

 Fix occasional array bounds JS error in deco animation by setting an initial turtle heading.

Also clean up variable naming (and duplication) around the decoration animation function.