Renamed internal functions to Query
Fixed changes against JSHint
Added DOM ready