A JavaScript suspension simulator