fix whitespace in pathname for tags
add TypeScript support