How to implement thread delays using Javascript rule since SetTimeout function is not working

Can some one assist on how to achieve thread sleep time in milliseconds using Javascript Rule since SetTimeout function is not working...