Fixed javascript calls in add.jade template