test: add tests for new, create, edit, update

Add javascript files.