Added JS/AJAX to check URL format on client-side.