my vannilla javascript code