changed type from text/javascript to application/javascript