add javascript variables for background