updated js code on illustration page