Full URI Scheme parser in javascript