bug fixes get this working in the browser. it appears to be working now.