Adjusted countdown function to not go if there's no countdown to count on
it was causing a JS error on the checkout page. Also added api.php to gitignore to prevent mistakes