wrote code inside prettydate2.js file