fix typo
moved event form js to a separate file, working edit form