add a simple js date snippet