generating browser code seems to work