Use the escaping rules from the jQuery selectors API as follows:

$('#root\\.SomeCoolThing')