unfinished work on js