Testing reading a javascript file