added ability to optimize js for production/client testing