use appendRule function in mozilla browsers