basic form helper
make sure that id string is valid

jQuery seems to have some problems with ids containing characters
like '[', which are common in names generated by rails
Merge pull request #6 from katafrakt/form_helper

basic form helper support