simple assert method for JS