Finally fixed the ff js issues. works now on ff and webkit (mac).