added recent js work for ipad dropdown handling