using if/else in javascript to display random color and statements