check in javascript basic