Online submission handler + JS and ajax

Needs styling, needs function for serverside’s checkforsubmitted
funcitonality