PHP includes block and javascript variables

Permalink
Is there any way to reference a javascript variable from within a PHP include? I'm trying to somehow add php to an html block with JS and Concrete5 doesn't recognize that, so I tried the free PHP includes addon and that works for the PHP but I don't know how to enclose it in javascript to be able to reference a JS variable. Any ideas?