added BracketMatcher.js, works with test cases