Fixed JS bug involving lack of tags array.