Exposes client js through middleware