Some work on js, not finished\!