Check for DATA constant

Added a check for DATA constant to prevent a PHP Strict notice in
index.html