Multiple options in one script error

The code part is fine, it might be the assignation on the editor. On another note try using code tags so your code is easier to read.
Using code tags properly page-2#post-3353071

Does your console output any errors?