Some improvements to the core NX.* js bits