fix for issue#154 menu items still open after window resize
minify js