haartojs script, create smaller output