fixed ensureIndex bug with version > 1.2.11 & fixed SSL issue with google ajax domain