renamed div class for clarity
Activate use strict on all js code. Fixes #1
Refactored to avoid use of global scope. Fixes #3