hw10 fixed javascript function wrapper
hw10 fixed javascript function wrapper