I get the below error after adding the $contextMenu code to the ADBrowser code.

ERROR : undefined variable [contextmenu]!