tweaking javascript for TRACKER