fix for running js optimizer standalone