minor code fixes

* select2 object does not have to be volatile, since its a final ref, use final instead
* modified clipboard scala implementation to match the Java one