added spatial form and js, not working yet