Add Moderate#Valid_parenthesis in JavaScript.