Build the options JSON Object automatically

Instead of relying on manually updating the options variable this will find all of the form fields and dynamically build the options variable.