Split python/js code

Changes is taken and adopted from *bashu`s* fork that gives an
example how to fix issue#12.
Transform select2 options to correct json
Removed inline_script from Select2TextMixin
Updated documentation
Version 1.2.9