close #40 added new tracking to javascript functionality