tested in firefox and chrome, little mods