base javascript check in