Refactor js with IIFE to avoid polluting global ns; tighten config
Merge pull request #4 from elifesciences/refactor-js

Refactor js with IIFE to avoid polluting global ns; tighten config