js utilities for fun and profit