Undefined constant DATA fix

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