Fix JavaScript