Updated Javascript and ReadMe for teaching materials