ah, i found the answer.. i needed to change the javascript mimetype to 'application/javascript' Posted at Nginx Forum: http://forum.nginx.org/read.php?2,245997,246000#msg-246000