Edit: Re-wrote since you're using WebWorks 2.0 Beta
I see the problem. You're doing things the "old way".
Since WebWorks 2.0 is running on Cordova, a few things have changed. Really quickly, I can see that you're including the 'local:///webworks.js'. That is incorrect for v2.0.
You need to include cordova.js now. Take a look at the sample project that comes with WebWorks 2.0 when you create a new project.
Here's the full Getting Started Guide that should get you up to speed. If you would rather use the command line, take a look at the build instructions at the end of any of the sample apps. Again, feel free to reference or use and adapt any of the sample apps as well @ https://github.com/blackberry/BB10-WebWorks-Samples/tree/WebWorks-2.0