test api server and basic js form handling