Make chat.php work over SSL