dom manipulation with vanilla js