Simple typewriter like animation with java script