Revert "Update NIM.js"

This reverts commit 4f1fe6155938a2e872c09a4cb6e82f9145024bfb.
Revert "Revert "Update NIM.js""

This reverts commit 6892cd69bee7bb95a1fdb971fb354fa3e6e952b3.