Fix linting issues; use standard AMD declaration