made some progress with creating objects in js and unsuccessfully trying to create a substitute sleep function for the hta