JavaScript OLAP cube