updated production js script for multiple input files