compress levels data in just one javascript file using a nodejs script