A Bounding Volume Hierarchy implementation using javascript