put { } after if
the general rule is you should always put them, unless you have a one liner like
if (bug) console.log()