js_node_t: return smart pointers on create, to remove our resource leaks
there.

git-svn-id: http://simulationcraft.googlecode.com/svn/trunk@18018 3b4652a1-8050-0410-ac47-3d40261b0f8b