almost functional, jquery bugs