this is web app using pure javascript