Final internal refactor of JS; also adds comments and inline documentation.
Merge branch 'master' of github.com:nprapps/responsiveiframe