Cheers, just using PHP directly in the script file will probably be best. But how do I go about including the appropriate WordPress functions so I can use get_option() to read from the database?
Would you care to share a little more than that? How DO you set variables in a js file?