Handle the code being called after DOMContentLoaded
Merge pull request #249 from bstell/master

Handle the code being called after DOMContentLoaded