Fix JS includes.

Closes #390.