Fix broken javascript tests. Closes #104.