move original typewriter effect JS code to another file for reference