Fixed javascript bug.