Create nub2.js

Copied from gametroll.net