CSS and Javascript patch

Firefox bug fixed: Border dashed lines present
delete unnecessary JavaScript