ff js bugfix