Update intellimenu.js

Menu was being hidden and shown in quick succession in certain instances