added some basic jquery form functionality