currently all parts of create_constraint.js seem to be working, but some more testing still needs to be done