form attached JS attributes
From what I remember, drupal_add_js, which ultimately is called, doesn't support attributes in the script element. You can use drupal_add_html_head to add js with other attributes; the docs page has some examples on how to do this.