BUG: Context menu too long (Fixes #811)

Added javascript to add and remove classes on context sub menus, to allow for multi column layout.