Js cap fix