update kite.js and user require instead of globals in the example