Update using.js

Added a few additional annotation comments to mark items as constant, and added an emitWarning function for error messages that are non-terminal.