Balancing parentheses algorithm with javascript

Published --