fixed some js rendering issues in Firefox