fixed jQuery selector issue with FF and Safari