Use a tighter regex pattern to avoid conflicts with RequireJS

Fixes #6