work on js complete not tested