Vanilla js example