move tag js into own file