fix javascript errors while loading the page