Use Javascript to detect plugin presence