struggling with javascript but wrote a README