Fixed issue with the menubar option producing a JS exception if set to true.