Update nn.js

Correcting some minor details