Extract timestamp frequencies and pass data to javascript.