Fixed race condition bug where domReady could fire before the main.js returned and created the window.Plyfe object.