Fix errors discovered by jshint

Running the `grunt serve` command failed to start the server due to failed jshint passes.  This request adds missing semicolons and variables, and reorders function calls in `/lib/models/account.js` so that variables are not referenced before they're defined.