Style fixes (function declaration, constants, JSDoc types, semicolons).