updated spectrum.js