add javascript for tracking