Add ability to create ticket in database with AJAX.
Create variables to better select elements for AJAX.