Fix minor errors

-Change minor javascript code in invoices/new to allow for creating new invoices
-Removed a require in the javascript/application.js