JS and php revisions