Basic functionality to pull time intervals from PBDB with JavaScript