commit for nodewebkit version
Changes for 3d to work with node-webkit
merged midway changes for freewrl