Merge pull request #1 from richtr/master

General bug-fixing WP1 merged.
Fix premature firing of DOMContentLoaded in Ready.js