https://tutorial.eyehunts.com/js/javascript-if-and-else-both-executed/
JavaScript if and else both executed