Added track method to trackJs factory