[javascript] Find if variable is divisible by 2