This will contain documentation sometime.

For now, here is the code: User:JayVDB/tags.js