updated version of ticker.js