use require js and underscore js to structure example client code