load_confirmed: regex -> xml parser

other changes:
- separate css code from js code
- code clean up(a bit)