Apache treating files with ".var[.]" in their names as type-maps

That's part of Apache httpd's Content Negotiation. Just remove the handler for type-map for the <Directory> or <Location> of your JavaScript files or remove MultiViews for these directories.