figure7.js

errors show before clicking button…needs to be fixed