small js fixed