Domain name parser and segmentator for JS. Uses templates and middleware.