This version is old school.
Please find jQuery plugins on npm.
A light weight multi functional context menu plugin
contextMenu.js is a multi functional context menu plugin. It supports different type of input, keyboard interaction, trigger events, submenus and lot more.