Move get-credit-count to root

Not part of client JavaScript that is served on page