Make vttjs npm friendly.

Also reorganize `tests` directory.