worked with mentor, fixing javascript