we don't use this var anymore
remove some unsused javascript code
Prevent to raise a 500 when user try submit a project edit

Because when user try submit a update on project and leave a required
field blank we try get the edit template
fix spec