updated syntax (added semicolons) as per JSHint