Update using.js

a couple of bug fixes