Include beforeJobSnapshotName in snapshotName snapshots list refresh javascript.
Fix logic bug