added browser only javascript example