code: function(){	
  		return {
  			type : document.getElementById("problemType").value,
  			objective : document.getElementById("problemObjective").value,
  			constraints : $(".input_constraint").filter(function(){
  				return /\w/.test( $(this).val() );
  			}).map(function(){ 
  				return $(this).val(); 
  			}).toArray()
  		};		
  	}
docs: returns object needs to create a input object for YASMIJ.