In case you are interested in adding 3D features similar to Blitz3D, there is a wrapper for the library OpenB3D in JavaScript
https://github.com/angros47/OpenB3D-JS
Thanks!