Changes to fields table

1) Moved the js to app/assets/projects (where it should be)
2) Moved all edit code to the success of an ajax request that checks the number of datasets in the project