use vanilla js