adding js example for week 3