Update main.js

Pretty sure that IF statement was redundant