tags weren't always working after javascript library switch