Adding symfony style form and changing JS to work on it