fixed incompatibility with old PHP versions

now using nodeValue instead of "innerHTML" function + small readme
update