Fix ckeditor init template. While there, fix trailing commas in javascript arrays, IE absolutely hates them.

Contributed in #389 by Hedde.
Take a stab at fixing #395

Before, moves to the right of an existing node were handled as moves
to the left.
Merge branch 'master' into next

* master:
  Take a stab at fixing #395
  Fix ckeditor init template. While there, fix trailing commas in javascript arrays, IE absolutely hates them.