fixed a bug where ie doesnt support indexOf
Merge branch 'refactor' of github.com:mitermayer/CustomForms into refactor