This post on SEOmoz talks about how Googlebot finds links in JavaScript and what unwanted consequences it may have. Consider using Disallow rules for "maintenance" JS links if you don't want them to compete with your normal web pages in Google search results.