Wrap id's of selectors in quotes

This fixes the cases with newer jQuery where selector
contains dot characters.