Writing WebCL demos can be difficult as while we are waiting for the Khronos specifications, getting code to run the same way on every implementations (meaning : Nokia, Samsung, Mozilla-Central, Motorola …) can be truly difficult.
However, while the standard is not finished yet, the working draft is publicly available and even if it means that it will certainly change from time to time, this is a good point to start while searching for a common API.
This is a work in progress, and the current release acts more like a prototype than a truly usable library. But it should become a useful library soon, allowing you to develop your demonstration without taking care of the implementation you are using and its evolution (of course you would still have to upgrade CommonWebCL).
As always, if you would like to contribute to this project, you’re welcome ! It is certainly not entertaining to do, but is might be useful while WebCL is still being specified by Khronos !
You can find more information on the Github repository.