sarebbe MODULO, ovvero RESTO DELLA DIVISIONE
$var deve essere NUMERICA

ma sei sicuro sia javascript? mi pare PHP