fixed js issue for input forms
Merge pull request #12 from hennyu/master

fixed js issue for input forms