added RegEx and parseInt function to tags.js