added buys to the log.
refactored client to use modules with requirejs