work on js part