reads javascript from file instead of in memory string