Add js to handle timestamps