check in js