onReady

added support for DOM ready
added index.html to test