Setting up JS variables.