PSD Parser in JavaScript