Start working on js version.