Update contextMenu.js

Chrome and ie issue fixed