JS | if/else, random, Math