Backport javascript testing from inauguration. Closes #22.