ticker functionality in js lib