Javascript elseif => else if

Javascript `elseif` syntax error