Adding file writer class to write out templates javascript file