Update javascript/src/js/util/mxWindow.js

Use clicks for caption buttons