Constraint library for JavaScript