Week09 Update, revised javascript