Trying to add several functionalities with a single button using javascript - Kevin Powell - Community