An implementation of a simple url matcher in javascript, as defined by https://developer.chrome.com/extensions/match_patterns.