Removed the dependency on quantity-check.php and added jQuery to do the work