in-browser javascript