fix select selection bug for chrome starting with 38

Fresh clean pull request for #1329
and FF! Maybe IE8 was ahead of its time - haha