better js syntax