support for custom javascript in themes