fix DOM load race condition by loading demo.js after body