updated javascript active class