Add Node script to generate the identifier regex

The script was taken from https://gist.github.com/mathiasbynens/6334847 and then modified to match this project’s needs.