Using javascript to create a dice game - Team project