Native JavaScript codes for embedding timestamp