made onDomReady() self-execution function; fixed example code in README