fixed the javascript crisis