Fix disabled button after item creation or edition

The save button was disabled during the creation process and was never enabled back again.

As well, some other JS related errors has been fixed.