added regex for calculating pg status and counts
added justgage js library