control js part working