Starting point for you: Reading Spark Variables with Your Own HTML File and also: Tutorial: Spark Variable and Function on One Web Page