Extracted methods for getting JS directory and HTML page file path.