Create AJAXsubmit.js

This js runs when the user clicks submit. it gives data to the php and initiates the creation of the new panel