Added timestamp in javascript functions