Fixing a few errors with missing semi-colons and prettyfying the code.