jQuery simple custom contextual menu

I was working on a file manager UI and needed to add a little custom contextual menu so when u right click a file the typical options appear (copy,paste,rename,etc). I try to avoid using 3rd parties as much as possible, I found a code over stackoverflow (I don’t quite remember the source) and modified it for my purposes.

HTML

CSS

JavaScript