new functions + fixed attr

added functions: is, tag
attr now return empty string if attribute doesn't exist