Changed 'text/javascript' to 'application/javascript'