string match or route library of javascript