Will using javascript hurt search engine optimization?

Using embedded javascript can hide the links from search engines.

To maintain MG's search engine optimization, embedded java scripts should be replaced with calls to an external .js file.

Doing this reduces the amount of code and other text in the html which can affect search engine ranking and the indexing of the page.

Most of the javascripts used in MG, are called from external .js files.