Simple If Statement In Javascript