js fix for iphone/android and dropdown menu