Fix #19 & #20, add js error test, add second form test.
Merge pull request #21 from kylerush/bugs

Fix #19 & #20, add js error test, add second form test.