a nice easy javascript tempate