low-hanging JS output optimizations