glorious beginning times with javascript