Improved displaying show/hide functionality, fixed three.js bug in IE9.