update for invalidateSize changes. also fixes whitespace for jshint.
update readme