1. you need `return` here (I did not realize it since I was so poisoned by R...)
2. it seems the returned value should be quoted, e.g. `script[data-for=foo\.bar]` does not work (I need to do more testing here)