Modified crop.js