Got file reading to work for javascript files