RIM has put together a guide to Dojo Toolkit in WebWorks and also a sample app! The app is available over in Github. There’s also a helpful site for the Dojo Tool Kit that you should check out. Developing is a lot easier with Dojo and it has been optimized for BB10.
Get the guide from here.