simple javascript psd writer