Moved the IPv4 jquery regex into a variable to clean things up.

Signed-off-by: Madison Kelly (digimer) <digimer@alteeve.ca>