The ready function is part of PB namespace not in the PB.$ namespace.