Links to content and other functionality should be available even if JavaScript is disabled. A <noscript > alternative text-only navigational system or text links may add accessibility.
SECTION 508 - When pages utilize scripting languages to display content, or to create interface elements, the information provided by the script shall be identified with functional text that can be read by assistive technology.
If scripts are used to generate HTML code for dynamic pages, then the generated code should comply with accessibility guidelines.
If a script relies on a user clicking a mouse, then make sure to include event handlers that can also allow a user to use the keyboard to tab to the tool.
Avoid using arbitrary database numbers for ALT tags, TITLE tags, FRAME tags and other text-only accessibility devices.