fix problem with not working javascripts