Fixed annoying javascript and css errors for iphone