prepares static page with js snippet