JQLite.ready() now checks if document already is ready when first called

If you call angular.element(document).ready(...) after the dom is ready, nothing happens. This patch will check the state of the document when ready() is called. 

This solution is based on the jQuery.ready() function (https://github.com/jquery/jquery/blob/master/src/core.js#L775)