a js timer object to use on any page with api for easy integration