Sample submit request javascript to start with