It's only for HTML. But if you have a need for JavaScript files, just let me know, it's technically possible, I just don't understand the use case yet.
It will try to detect your time zone with JavaScript. If that doesn't work, it falls back to Los Angeles and the user may contact the support to update this setting.