fixed the broken javascripts!