Using proper JSON encoding of PHP value.
Typecasting directly, to make things easier to read.
Merge pull request #67 from aik099/select-option-js-escape-fix

Using proper JSON encoding of PHP value in `selectOption` method