Added a fix, suggested by Diego, for IE firing the ready event too late. Fixes bug...