A type writer animation using JavaScript