Changed _drupalgap_form_render_element() to attach the element id to the element obect. Changed theme_form_element_label() to use the element id as the 'for' attribute value, unless it is a radio, then it uses the element's name.