added wat_active js code