adjusted javascripts