Added Javascript If the way I like to do it