build tags with javascript