Fixed a javascript bug and a css bug.