added attack.js