Fix JS strict mode errors, make tag search case insensitive.