Added missing semicolons to make JSHint happy.
Saved some bytes by removing redundant code.