Put quotes around 'id' values in query selectors

querySelectorAll throws an exception when the query selector has an 'id'
value starting with a number. In HTML5, id's can start with numbers and
hence are not illegal.