Add an input parameter "tag" for filtering metadata

Hi, i'm new to web development and find this lib is very useful for my project.

Therefore, I wanna add a tag input for the .metadata() function, so that I can just fetch the metadata I need.

If my adjustment for the code is not well, please just point me out, cause this is my first time doing pull request on github, thanks.