Deterministically execute javascript in your web application with minimum coupling to your server side