Removed hardcoded affiliates, less AJAX

Removed hardcoded affiliates and relies on REST file in PHP, makes a
check prior to AJAX instead of automatically doing AJAX at all times
and mobile check.