browser support for xhr, beautified cap object
changed samples js and css
first working prototype