transactions in websql

fix for #375