modify attraction.js