Added missing closing bracket in client-side javascript