extracted javascripts