Override _moveToTop from jQuery UI Dialog

* Code is taken from jQuery UI 1.11 to which we can’t upgrade now for other reasons

Closes #184 as fixed
Prepare commented use_local_library_cache

* for backend-development only