Updatet js for p2b with spinner and more fluent display.