Fix request in js