Rebuild credits list in Javascript