When using Context Menus for BlackBerry 10 you will need to include the WebWorks extension contained in the ext folder shown above in the file listing.
NOTE: This is only for BlackBerry 10 devices, and it is not needed for PlayBook BlackBerry 10 styling
Installing the bbUI.js extension in your WebWorks installation is quite simple. You first locate your WebWorks installation directory. On Windows the default path is typically C:\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK a.b.c.d
In this directory you will find a Framework\ext directory. Simply create a bbui sub directory and copy all the contents from the above ext directory into your new sub directory. It will end up looking like the following:
Framework
\ext
\bbui
- client.js
- index.js
- manifext.json