small js edit