Update nano.js

Fix bug if h is not defined