[javascript] Shorthand if/else statement Javascript