support for page-level javascript