a lib to control js