Renamed "ctx" abbreviation to "context".
Refactored counter to be more testable.
Minified and embedded resulting html.