creates html pages out of thin javascript