Using Javascript to get around SEO concerns

I would like to know at which stage is it okay to start manipulating HTML elements/content using Javascript so as not to impair SEO? I have read somewhere that HTML content that is hidden using the CSS...