allow js_optimizer.py to run standalone