fix vanilla js